# Contributor: Jesse Laprade <jesselaprade@gmail.com>
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=fa
pkgver=0.5.10
pkgrel=2
pkgdesc="A Commandline Agenda written in Fennel"
url="https://codeberg.org/m455/fa"
arch="all"
license="AGPL-3.0-only"
makedepends="fennel5.3 lua5.3-dev"
depends="lua5.3"
source="fa-$pkgver.tar.gz::https://codeberg.org/m455/fa/archive/$pkgver.tar.gz
	fix-fennel-version.patch"
options="!check" #No checks
builddir="$srcdir/fa"

build() {
	make compile-bin STATIC_LUA_LIB="/usr/lib/liblua-5.3.so.0.0.0"
}

package() {
	make install-bin DESTDIR="$pkgdir"/usr/bin
}

sha512sums="
7a16ab60004170b8e601721bb3c6acabdae817495a5b2b3b3c21cd1d5278730de6e575888750f9889f4bac4e8260a8e1c64fc1e308fa407e36a7a36cc7d7362c  fa-0.5.10.tar.gz
5708544b5323ac8e893d138a1ef1d95a61297899ce0fd36dff653c85fb47f765a1c352260b917d7d13a2b48472dd8c33f597d4c668a6e65e78730e61a937008b  fix-fennel-version.patch
"
